package com.sky.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
@Slf4j
public class MyTask {

    private Integer i = 1;


//    @Scheduled(cron = "0/15 * * * * ? ")
    public void executeTask() {
        log.info("我愛java第" + i++ + "次");
    }
}
